Processing complex regions of illustration artwork

ABSTRACT

A computer-based method of processing a computer graphics illustration having pieces of artwork includes mapping outlines of the pieces of artwork onto a grid of cells, determining a number of outlines that map to a cell, and identifying a complex region based on the determined number of outlines that map to the cell.

REFERENCE TO RELATED APPLICATIONS

The application relates to co-pending U.S. Application Ser. No.09/444,778, entitled “Processing Illustration Artwork”, filed Nov. 22,1999, and U.S. Application Ser. No. 09/447,018, filed Nov. 22, 1999,entitled “Processing Opaque Pieces of Illustration Artwork”.

BACKGROUND OF THE INVENTION

This invention relates to processing pieces of artwork in acomputer-graphics illustration.

Many items in everyday life exhibit some degree of transparency. Forexample, a car windshield is almost completely transparent. The tintedglass of a bottle is less transparent than a car windshield; however, aviewer can still make out objects behind the bottle.

Simulating transparency in a computer-generated images can consume largeamounts of computer memory due to the amount of data needed to describethe image. For example, an image printed by a typical computer printeris made up of millions of colored dots roughly 0.005 inches in size. Foreach dot, a computer must determine a color based on the differenttransparent graphics overlapping the area covered by the dot. Theprocess of determining these colors is known as “compositing.”

SUMMARY OF THE INVENTION

In general, in one aspect, the invention features a computer-basedmethod of processing a computer graphics illustration having pieces ofartwork. The method includes mapping outlines of at least some of thepieces of artwork onto a grid of cells, determining a number of outlinesthat map to a cell of the grid, and identifying a complex region basedon the determined number of outlines that map to the cell.

Embodiments may include one or more of the following features. Themethod may include identifying artwork pieces to include in anillustration flattening process (e.g., producing a planar map) based onthe identification of the complex region. Artwork classified as entirelyinside the complex region may be excluded from the flattening. Themapping may include drawing the outlines using a rasterization enginefunction. Identifying complex regions may include comparing thedetermined number of artwork pieces that enter a cell with a threshold(e.g., a user defined or dynamically determined threshold). Theillustration may have a first associated resolution and the grid mayhave a second resolution being less than the first revolution.

The method may further include classifying artwork based on theintersection of the artwork with the complex regions. For example,artwork may be classified as being completely inside a complex region,completely outside a complex region, or partially inside a complexregion.

In general, in another aspect, a computer program product, disposed on acomputer readable medium, for processing a computer graphicsillustration having pieces of artwork includes instructions for causinga processor to map outlines of pieces of artwork onto a grid of cells,determine a number of outlines that map to a cell of the grid, identifya complex region based on the determined number of outlines that map tothe cell, and based on the identifying, excluding pieces of artwork froman illustration flattening process.

Advantages of the invention will become apparent in view of thefollowing description, including the figures, and the claims.

BRIEF DESCRIPTION OF THE DRAWINGS

FIGS. 1-4 are diagrams of illustrations that include overlapping artworkobjects.

FIG. 5 is a diagram of a planar map.

FIG. 6 is a diagram of a graph that can be used to determine theappearance of regions in the planar map.

FIGS. 7-9 are diagrams illustrating a process for constructing a planarmap and graph.

FIG. 10 is a flowchart of a process for outputting an illustration.

FIGS. 11-14 are diagrams illustrating a process for identifyingtransparent regions of an illustration.

FIG. 15 is a flowchart of a process for excluding regions of anillustration from representation in a planar map.

FIG. 16 is a diagram of a planar map.

FIGS. 17-20 are diagrams illustrating a process for identifying complexregions of an illustration.

FIG. 21 is a flowchart of a process for excluding regions of anillustration from representation in a planar map.

FIG. 22 is a diagram of a planar map.

FIG. 23 is a diagram of a computer platform.

DETAILED DESCRIPTION

I. Introduction

FIG. 1 shows a computer illustration 10 that includes a circle 12 and atriangle 14. The circle 12 and triangle 14 are simple examples ofartwork objects. An artwork object 12, 14 includes an outline shape(i.e., a path) and an appearance. The appearance may include aparticular color, a type of shading, and/or a picture (i.e., a raster).

As shown in FIG. 1, the intersection of circle 12 and triangle 14 formsa region 16. This intersection raises an important question. Shouldregion 16 appear like the circle 12, the triangle 14, or some mixture ofthe two? One way to resolve the question of how to display regionsshared by objects is to define different illustration layers. Eachobject appears on at least one layer. Objects at higher layers can blockthe visibility of objects at lower layers. These layers can beestablished by defining a painting order that describes a sequence forplacing artwork objects in the illustration 10 (e.g., first paint thecircle, then paint the triangle on top of the circle). Each object inthe painting order essentially is given its own layer with objectsearlier in the painting order appearing behind objects later in theorder. As shown in FIG. 2, an opaque artwork object 14 on a higher layercan hide portions of an artwork object 12 on a lower layer.

Instead of completely covering another object, artwork objects canexhibit some transparency. As shown in FIG. 3, when red triangle 14 hassome degree of transparency, placing red triangle 14 on top of bluecircle 12 produces a mixture of red and blue (e.g., purple) wheretriangle 14 overlaps circle 12. The more transparent the triangle 14,the more the appearance of the circle 12 dominates the appearance of theshared region 16. In this case, increased transparency of the triangle14 produces a bluer intersection region 16. Similarly, decreasedtransparency of triangle 14 produces a redder intersection region 16.

As shown in FIG. 4, adding additional artwork objects 22, 24 can quicklycomplicate an illustration 10. For example, adding just two rectangles22, 24 increased the number of intersection regions between objects fromone to twelve. Each additional intersection represents an additionalregion that the software must process.

FIG. 5 shows a planar map 30 produced by flattening the multiple layersin an illustration (e.g., illustration 10 in FIG. 4) into an equivalentsingle layer of opaque regions. FIG. 5 shows exaggerated seams betweenthe regions 31-42 for illustrative purposes. Much like a stained-glasswindow, a planar map 30 features interlocking non-overlapping regions31-42. The appearance (e.g., a color, gradient, or raster) of eachopaque region is determined such that outputting (e.g., sending to aprinter or another program) the planar map regions is essentiallyindistinguishable from outputting the illustration objects directly.That is, instead of outputting each artwork object (e.g., circle 12,triangle 14, and rectangles 22 and 24 in FIG. 4), a system can outputthe path and appearance of each region 31-42 in the planar map.

The non-overlapping regions of the planar map are known as “atomicregions.” Atomic regions are opaque illustration regions that are notintersected by other regions. The appearance of any atomic region isbased on the appearances of the artwork objects covering the region inthe original illustration (FIG. 4).

Different techniques for constructing and using the planar map canconserve memory when compositing an displaying an illustration.

II. Postponed Compositing

FIG. 6 shows information that can be used to determining the appearanceof different illustration regions. As shown, the information is in theform of a graph 50. The graph 50 includes a bottom portion 70 thatfeatures nodes, labelled “1” through “12”, for each planar map region.Each node is the root of a binary tree that terminates in one or moreleaves 62-68 corresponding to the illustration artwork objects. Forexample, node “3” (corresponding to atomic region “3” 33 in the planarmap of FIG. 5) is the root of a binary tree that includes pointers tochildren nodes “1” and “2”. Nodes “1” and “2” in turn include pointersto artwork objects A 62 and B 64 (the rectangles in FIG. 4).

Traversing the tree rooted by any node can be used to quickly determinethe appearance of the node's planar map region. For example, node “1”represents the appearance of artwork object A 62; node “2” representsthe appearance of artwork object B 64; and node “3” represents thecomposite appearance of artwork object B layered over artwork object A.Thus, the tree 70 acts as a pre-calculated set of indices that can beused dynamically to determine any represented region's appearance.

The appearance for each node can be pre-determined and stored for use asneeded. Though this may be practical in the relatively simpleillustration shown, the amount of memory needed for storage can swell asthe illustration incorporates more artwork objects and the number ofregions in the planar map grows.

Alternatively, the tree 70 can be used to determine the appearance ofeach region dynamically. For example, a system may produce an outputstream that includes the path and appearance of each planar map regionby making an on-the-fly determination of the region's appearance basedon the region's tree 70 node. To conserve memory, the system may discardeach determined appearance after the appearance is sent into the outputstream. Thus, to output the image of FIG. 5, the system can determine,output, and discard the appearance of node “1”; determine, output, anddiscard the appearance of node “2”; then re-determine the appearance ofnodes “1” and “2” to determine the appearance of node “3”; and so on. Atfirst blush, it may seem inefficient to discard the appearance of nodes“1” and “2” when their appearance will be needed to determine theappearance of node “3”. However, discarding (e.g., deallocating frommemory, marking for deletion if memory is needed, or otherwise makingthe memory available for use) each node's appearance after use canreduce the memory consumed when producing an output stream by an orderof magnitude.

Preservation of certain determined node appearances (e.g., node “4”which takes part in seven out of the twelve appearance determinations)may speed display of an illustration without greatly increasing memoryconsumption. For example, nodes involved in the most number ofdeterminations can be identified and these appearances can be preservedfor future use instead of being discarded.

The top portion of FIG. 6 includes an artwork tree 52 representing thetransparencies of artwork objects. The top portion can be quicklyconsulted to determine artwork transparency when determining regionappearances. The tree 52 includes a root node 54 and nodes 56-60 thatspecify transparency. The degree of transparency can be represented anumber such as an alpha value that ranges between 0 and 1. Atransparency value of “1” represents a completely opaque object. Atransparency value of “0” represents a completely transparent object. Anode can describe the transparency of an individual object. For example,node 60 indicates that triangle D (14 in FIG. 4) has a transparencyvalue of 0.4.

A node can also describe the transparency of a group of objects. Forexample, node 56 indicates that the group of circle C (12 in FIG. 4) andrectangle B (24 in FIG. 4) share a transparency value of 0.5. The grouptransparency value indicates the transparency of the group of objects asa collection, not the transparency of a particular object in the group.That is, the group of circle C and rectangle B will present the sametransparent appearance relative to objects behind them, but thetransparency of circle C relative to rectangle B is not affected by thegroup value.

Members of a group (i.e., the nodes for individual objects or othergroups) can have their own transparency values that are applied inaddition to the transparency value of the group node. For example, node58 indicates that the circle C will have an additional transparency of0.3 applied in addition to the transparency of 0.5 indicated by groupnode 48. Navigating up the tree from an artwork object node 62-68 to theroot 54 can quickly produce transparency for any given artwork object.

As shown, transparency is represented by a single value. However, thetransparency of an object need not be uniform. For example, an objectmay have a gradient of transparency. That is, one end of the object maybe nearly opaque while another end is nearly completely transparent. Insome embodiments, each node includes a reference to a transparencyserver that handles the different types and degrees of transparency.

FIGS. 7-9 show one technique for constructing a planar map and graph 70from a set of illustration artwork objects. FIG. 7 shows the firstartwork object 31 in a paint order. The artwork object is added to theplanar map along with a node (e.g., node “1”) representing theappearance of the region covered by the artwork object. In FIG. 8, thesecond artwork object, rectangle B 33, adds a new region 32 and carves aregion “3” out of previously existing region “1”. The second artworkobject is added to the planar map graph 70 along with a node for theregion belonging solely to rectangle B 32 and a node “3” for the region33 representing the layering of rectangle B over rectangle A. In FIG. 9,the third artwork object “steals” portions of regions “1”, “2”, and “3”to produce portions “5”, “6”, and “7”. The new regions are added to theplanar map graph in addition to region “4” and a leaf for artwork objectC. The process shown in FIGS. 7 to 9 continues until the planar maprepresents all artwork objects in the paint order. Generating a planarmap and graph prior to a request for display of the illustration shiftsresource consumption to a time when resources may be in less demand.That is, much of the work involved in outputting an illustration can bedone before a printing request. This increases the responsiveness of asystem when a printing request is finally received.

After constructing the planar map (FIG. 5) and graph (FIG. 6), the graphcan be used to postpone determination of the appearance of a planar mapregions until the appearance is to be included in an output stream. In aprocess 70 shown in FIG. 10, after producing a planar map 72, theprocess 70 handles each region in the planar map in turn. For eachregion, the process 70 determines the region's appearance 74 and sends76 the determined appearance in an output stream along with the path ofthe region. The output stream may feed into memory of a printer. Theprocess 70 then frees 78 memory used to describe the appearance of theregion and begins processing the next region. This continues until eachplanar map region has been processed.

III. Enhancements

A planar map can become very large for complex illustrations. A numberof different techniques can reduce the size of the planar map. Some ofthese techniques can take advantage of functions provided by existingrasterization engines often present in illustration software such asAdobe® Illustrator®. Further, these techniques may be used in a widevariety of flattening schemes such as schemes that individuallydetermine the appearance of each dot in an illustration.

A. Identifying Opaque Objects

One approach to simplifying the planar map involves identifying opaqueobjects that do not overlap areas covered by transparent objects.Intuitively, the appearance of such regions is that of the opaqueobject. Thus, the opaque object can be sent immediately to the outputstream and without being added to the planar map.

FIG. 11 shows an illustration 80 that includes different opaque (shownas shaded) 82, 84, 86 and transparent 88, 90 artwork objects. A widevariety of techniques can be used to identify those opaque objects (orportions of opaque objects) that do not overlap any transparent objects.For example, a process could test each opaque object against eachtransparent object to determine whether their paths intersect. Thenumber of comparisons, however, increases geometrically with eachadditional artwork object.

FIG. 12 illustrates a technique for quickly identifying opaque objectsthat do not intersect any transparent objects without a directdetermination of intersection between different pairs of opaque andtransparent objects. The technique maps transparent artwork objects 88,90 to an off-screen low-resolution grid 92 (e.g., 32×32 cells). As usedherein, the term grid 92 does not imply a particular geometry of gridcells. That is the grid 92 is merely a planar subdivision that canfeature cells of a variety of geometries (e.g., squares, triangles,hexagons, and so forth). The portion of the grid 92 that includes anypart of a transparent object is marked. In one implementation, this isperformed by setting a rasterization engine's transform matrix to mapbounding boxes of transparent objects to the low-resolution grid. Asshown in FIG. 13, this marking produces a coarse approximation 94 ofregions including transparent objects. Mapping an opaque object 82, 84,86 to the low-resolution grid 92 quickly provides an estimate of whetherany particular opaque object 82, 84, 86 overlaps any transparentobjects. Because of the coarseness of the approximation of thetransparent region 94, this approach will sometimes miscategorize anopaque object as overlapping the transparent region when no such overlapexists. However, the technique quickly identifies objects that dooverlap the transparent region.

This technique can be implemented using fast rasterization enginefunctions. For example, after painting the low-resolution grid (e.g.,raster) white, the initial mapping of transparent objects to thelow-resolution grid may be done by painting the transparent objects onthe grid in black, for example, using an over-scanning flood-fill mode.The testing of whether an opaque object overlaps the transparency regionmay be performed using a rasterization engine blending mode functionthat checks a cell in the low-resolution grid and determines whether ornot it has been previously painted black.

These techniques may be incorporated into a process that avoids addingopaque objects that do not overlap transparent objects to the planarmap. FIG. 15 shows one such process 72. After determining thetransparency region 100, for example, by drawing the transparent objectson a low-resolution grid, the process 72 classifies 102 each opaqueobject based on its intersection, if any, with the transparency region.An opaque object may be completely inside the transparency region,partially inside, or completely outside the transparency region.Classifying an opaque object as being completely inside or completelyoutside requires analysis of the entire area covered by the opaqueobject. However, an opaque object can be immediately classified as beingpartially inside the transparency region once analysis of the regionoccupied by the opaque object yields at least one portion inside and oneportion outside.

If the opaque object is completely outside the transparency region, theprocess 72 immediately outputs 108 the opaque object to the outputstream without adding the artwork object to the planar map. If theopaque object is completely inside the transparency region, the process105 adds the entire object to the planar map. If, however, the opaqueobject is partially inside and partially outside the transparencyregion, the process 72 can immediately send 104 the opaque object to theoutput stream and add 106 the opaque object to the planar map.Alternatively, the process can add only the portion of opaque objectthat is inside the transparency region to the planar map. In eithercase, portions of an illustration that do not require transparencyprocessing to determine their appearance do not unnecessarily consumecomputer resources.

FIG. 16 shows a planar map produced using the process 72 shown in FIG.15. The planar map does not include any regions corresponding to opaqueobject 84, but does include opaque object 86 in its entirety (shown asplanar map region 118). The map also includes a portion of opaque object88 clipped to the transparency region (shown as planar map regions 114and 116).

The technique of identifying opaque objects that overlap transparentobjects may be used to improve a variety of different illustrationflattening schemes. For example, opaque objects that do not overlaptransparent objects may be added to a flattened raster withoutcompositing each individual dot in the opaque object. Reducing thenumber of dots composited both speeds processing and reduces consumptionof computer resources.

In a variation of the above, a process can exclude artwork objects fromflattening based on a determination that the object is obscured by anopaque object. For example, an opaque object may be on an “higher” layer(i.e., conceptually closer to the screen) than objects beneath.Including the obscured artwork objects in a flattening process merelyexpends resources without altering the appearance of the output. Animplementation to exclude obscured artwork from flattening may involveprocessing artwork objects layer by layer and progressively mapping outregions covered by opaque objects. As a transparent object isencountered in the layer by layer processing, a comparison may be madeto determine if the transparent objects is completely (or partially)covered by a region mapped by one or more “higher” opaque objects. Thecovered portion may be excluded from the flattening process.

The use of a low-resolution off-screen raster to make quick estimationsof illustration can be used to perform other functions. For example, anoff-screen grid can be used to identify complex regions of anillustration.

B. Identifying Complex Regions of the Illustration

Some illustrations may feature areas having multiple objects in a verysmall space. These objects typically produce a large number of verysmall (e.g., pixel or sub-pixel sized) atomic regions. For these smallspaces, it can be mote efficient to determine the color value of eachpoint individually (i.e., rasterize a small area) than add the verysmall atomic regions to the planar map. FIGS. 17-20 illustrate atechnique for identifying complex regions of an illustration.

FIG. 17 shows an illustration 130 of artwork objects 132-142. As shown,many of the objects 132-142 appear clustered near object 138. FIG. 18shows a mapping of the artwork objects onto an off-screen low-resolutiongrid 144. The resolution of the grid 144 may be fixed or dynamicallydetermined. Counting the number of objects having an outline in eachgrid cell can identify complex regions. FIG. 19 shows a count of objectswhose paths enter each cell in the low-resolution grid. As shown, gridcell 146 is entered by objects 136-142 and has a value of “4”. Athreshold can identify those grid cells having highly complex geometry.For example, a user may define any cell having a value of “4” or more asbeing highly complex. Based on this threshold, a grid cell may beclassified as a complex region and rasterized instead of adding objectsin the cell into the planar map (as illustrated in FIG. 20).Alternatively, the process may use different techniques to produce athreshold (e.g., set the threshold so that it includes the most complex5% of grid cells).

FIG. 21 shows a process 72 for identifying complex regions of anillustration and processing objects that lie in the complex regionswithout use of the planar map. After identifying complex regions of anillustration 150, each object can be classified as being completelyinside the complex region, partially inside, or completely outside thearea. If completely inside, the object is not added 158 to the planarmap. If completely outside, the object is added 157 to the planar map.If only partially inside, the entire object may be added to the planarmap or, alternatively, only the portion of the object lying outside thecomplex region may be added to the planar map. The complex regions arethen processed 159 (e.g., rasterized) for display independent of theprocessing for planar map regions.

The process readily lends itself to the use of rasterization enginefunctions. For example, to determine high complex regions, each artworkobject may be drawn in the low resolution grid using a pen having athickness of “1” and a transparency alpha value near “0”. Thus, strokingeach object adds a value of “1” to each cell covered by the stroke anddarkens the cell. An intersection blending mode can identify “dark”cells having a number of strokes that exceeds the user definedthreshold.

FIG. 22 shows a planar map produced by the process of FIG. 19. As shown,object 138 is not represented in the planar map. Additionally, onlyportions of objects 136, 140, and 142 outside the complex regions appearin the planar map.

Again, this technique for quickly identifying complex regions of anillustration may be used in systems that use flattening techniques otherthan the planar map technique described above, for example, to reducethe number of object intersections that need to be handled by otherflattening techniques.

Embodiments

FIG. 23 shows a computer platform 170 suitable for implementing thetechniques described above. The platform 170 can include an outputdevice such as a monitor 172 or printer 186 for displaying anillustration 174. The platform may also include a keyboard 178 and/orpointing device 176. The platform includes a digital computer 180 thatfurther includes a processor 182 and access a computer readable medium(e.g., Random Access Memory 184A, hard disk 184B, CD-ROM 184C, and/orfloppy disk 184D). The memory can include instructions 186 thatimplement the techniques described herein. These instructions 186 aretransferred to the processor 182 for execution in the course ofoperation.

However, the techniques described here are not limited to any particularhardware, firmware, or software configuration; they may findapplicability in any computing or processing environment. Additionally,different embodiments can be used in different graphics environments.For example, the disclosed invention can be used in aresolution-independent graphics environment that specifies artworkpositioning using vectors and generates artwork coordinates whenassociated with a particular resolution.

The techniques may be implemented in hardware or software, or acombination of any of them. Preferably, the techniques are implementedin computer programs executing on programmable computers that eachinclude a processor, a storage medium readable by the processor(including volatile and non-volatile memory and/or storage elements), atleast one input device, and one or more output devices. Program code isapplied to data entered using the input device to perform the functionsdescribed and to generate output information. The output information isapplied to one or more output devices.

Each program is preferably implemented in a high level procedural orobject oriented programming language to communicate with a computersystem. However, the programs can be implemented in assembly or machinelanguage, if desired. In any case, the language may be a compiled orinterpreted language.

Each such computer program is preferable stored on a storage medium ordevice (e.g., CD-ROM, hard disk or magnetic diskette) that is readableby a general or special purpose programmable computer for configuringand operating the computer when the storage medium or device is read bythe computer to perform the procedures described in this document. Thesystem may also be considered to be implemented as a computer-readablestorage medium, configured with a computer program, where the storagemedium so configured causes a computer to operate in a specific andpredefined manner.

Though elements of the following claims are listed one after another,the ordering of these elements does not imply a particular ordering ofoperations. Additionally, many of the operations may be performedincrementally.

Other embodiments are within the scope of the following claims.

1. A computer-based method of processing a computer graphicsillustration that includes one or more pieces of artwork, the methodcomprising: mapping outlines of at least one of the pieces of artworkonto a grid of cells, a piece of artwork having one outline; determiningthe total number of outlines of pieces of artwork that map to a cell ofthe grid; identifying the cell as a complex region based on the totalnumber of outlines that map to the cell; and identifying pieces ofartwork to include in an illustration flattening process based on theidentification of the complex region.
 2. The method of claim 1 whereinthe illustration flattening process comprises a process for producing aplanar map of the illustration.
 3. The method of claim 1 whereinidentifying artwork comprises excluding artwork classified as entirelyinside the complex region.
 4. The method of claim 1 wherein mappingcomprises drawing the outlines using a rasterization engine function. 5.The method of claim 1 wherein identifying comprises comparing the totalnumber of outlines of pieces of artwork that map to the cell with athreshold.
 6. The method of claim 5 wherein the threshold comprises athreshold based on user input.
 7. The method of claim 5 wherein thethreshold comprises a dynamically determined threshold.
 8. The method ofclaim 1 wherein the illustration has a first associated resolution andthe grid has a second resolution, the second resolution being less thanthe first resolution.
 9. The method of claim 1 wherein the determiningcomprises determining using a rasterization engine function.
 10. Themethod of claim 1 further comprising classifying at least one of thepieces of artwork based on the intersection of the piece of artwork withthe complex region.
 11. The method of claim 10 wherein classifyingcomprises identifying the piece of artwork as being completely insidethe complex region.
 12. The method of claim 10 wherein classifyingcomprises identifying the piece of artwork as being complletely outsidethe complex region.
 13. The method of claim 10 wherein classifyingcomprises identifying the piece of artwork as being partially inside thecomplex region.
 14. A computer program product, tangibly stored onmachine-readable medium, for processing a computer graphics illustrationhaving pieces of artwork, the product comprising instructions operableto cause a processor to: map outlines of at least one of the pieces ofartwork onto a grid of cells, a piece of artwork having one outline;determine the total number of outlines of pieces of artwork that map toa cell of the grid; identify the cell as a complex region based on thetotal number of outlines that map to the cell; and exclude, based on theidentifying of the cell as a complex region, pieces of artwork from anillustration flattening process.
 15. The product of claim 14, furthercomprising instructions to: exclude pieces of artwork that map entirelyinside the complex region.
 16. The product of claim 14, wherein: theillustration flattening process includes a process for producing aplanar map of the illustration.
 17. The product of claim 14, wherein theinstructions to identify a cell as complex includes instructions to:compare the total number of outlines of pieces of artwork that map tothe cell with a threshold.
 18. The product of claim 14, wherein theinstructions to compare the total number of outlines of pieces ofartwork that map to the cell with a threshold includes instructions to:dynamically determine the threshold.
 19. The product of claim 14,wherein the instructions to compare the total number of outlines ofpieces of artwork that map to the cell with a threshold includesinstructions to: determine the threshold based on user input.
 20. Theproduct of claim 14, wherein the instructions to map includesinstructions to: draw outlines using a rasterization engine.
 21. Theproduct of claim 14, wherein the instructions to determine includesinstructions to: use fast rasterization functions to determine thenumber of outlines that map to a cell.
 22. The product of claim 14,further comprising instructions to: classify a piece of artwork based onan intersection of the piece of artwork with the complex region.
 23. Theproduct of claim 22, wherein instructions to classify a piece of artworkincludes instructions to: determine whether the outline of the piece ofartwork is mapped completely inside the complex region.
 24. The productof claim 22, wherein instructions to classify a piece of artworkincludes instructions to: determine whether the outline of the piece ofartwork is mapped partially inside the complex region.
 25. The productof claim 22, wherein instructions to classify a piece of artworkincludes instructions to: determine whether the outline of the piece ofartwork is mapped completely outside the complex region.
 26. The productof claim 14, wherein: the illustration has a first associated resolutionand the grid has a second resolution, the second resolution being lessthan the first resolution.